/*
 * @Date: 2022-02-13 14:09:26
 * @LastEditors: xiaole
 * @LastEditTime: 2022-02-13 20:10:44
 */

import { defineComponent ,ref} from "vue";
import { Search,Toast  } from 'vant';
export default defineComponent({
    
    setup() {
        let key = ref('')

        const onCancel= () => {
            key.value = ''
            Toast('点击了取消')
        }
        return () => <Search v-model={key.value} show-action  onCancel={onCancel} placeholder="请输入搜索关键词" />
    }
})